import ash from '@ash.ts/ash';
import { AnimationNode } from '../data/nodes';

export class AnimationSystem extends ash.ListIteratingSystem<AnimationNode> {
  public constructor() {
    super(AnimationNode);
  }

  public updateNode(node:AnimationNode, time:number):void {
    node.animation.animation.animate(time);
  }
}
